*,
*:before,
*:after {
  box-sizing: border-box;
}

a {
  @extend %smart-focus-outline;
}

a[href^='http://'],
a[href^='https://']
{
  cursor: pointer; // Make all web links use pointer cursor
}

html,
body {
  height: 100%;
  user-select: none;
}

body {
  margin: 0;
  font: 14px/1.5 $sans;
  overflow: hidden;
  -webkit-touch-callout: none;
}

img,
svg {
  vertical-align: middle;
}

a {
  color: $studio-simplenote-blue-50;
}

b,
strong,
optgroup {
  font-weight: $bold;
}

[contenteditable] {
  user-select: text; // Safari (https://stackoverflow.com/questions/20435166)
}

.app {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.simplenote-app {
  display: flex;
  position: relative;
  width: 100%;
  height: 100%;
  transform: translateX(0px);
  transition: transform 200ms ease-in-out;

  &.note-info-open {
    transform: translateX(-$note-info-width);
  }

  &.navigation-open {
    transform: translateX($navigation-bar-width);
  }
}

.is-macos {
  .note-toolbar-wrapper {
    box-sizing: border-box;
    -webkit-app-region: drag;
    padding: 40px 0 30px;
  }

  .search-bar {
    padding: 40px 15px 30px;
    box-sizing: border-box;
    -webkit-app-region: drag;
  }

  .note-toolbar-placeholder {
    height: 71px;
    -webkit-app-region: drag;
  }

  .navigation-bar,
  .note-info {
    padding-top: 10px;
  }

  .button,
  .search-field {
    -webkit-app-region: no-drag;
  }
}

.login__draggable-area {
  height: 100px;
  position: absolute;
  top: 0;
  width: 100%;
  -webkit-app-region: drag;
}

.gridicon {
  fill: currentColor;
}

.search-match {
  background-color: $studio-simplenote-blue-50;
  border-radius: 3px;
  padding-left: 2px;
  padding-right: 2px;
  color: $studio-white;

  &[data-current-match='true'] {
    background-color: $studio-yellow-60;
  }
}
